package com.rs.admin.sys.oauth2;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author hedonglin
 * @company 睿思科技
 * @email 1048791780@qq.com
 * @date 2017年12月13
 */
public class OAuth2Token implements AuthenticationToken{

    private static final long serialVersionUID = 1L;
    //用户认证的token
    private String token;

    public OAuth2Token(String token){
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
